package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.CheckVisit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysChecklistMapper;
import com.ruoyi.system.domain.SysChecklist;
import com.ruoyi.system.service.ISysChecklistService;

/**
 * 检查订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-29
 */
@Service
public class SysChecklistServiceImpl implements ISysChecklistService 
{
    @Autowired
    private SysChecklistMapper sysChecklistMapper;

    /**
     * 查询检查订单
     * 
     * @param checkId 检查订单主键
     * @return 检查订单
     */
    @Override
    public SysChecklist selectSysChecklistByCheckId(Long checkId)
    {
        return sysChecklistMapper.selectSysChecklistByCheckId(checkId);
    }

    /**
     * 查询检查订单列表
     * 
     * @param sysChecklist 检查订单
     * @return 检查订单
     */
    @Override
    public List<SysChecklist> selectSysChecklistList(SysChecklist sysChecklist)
    {
        return sysChecklistMapper.selectSysChecklistList(sysChecklist);
    }

    /**
     * 新增检查订单
     * 
     * @param sysChecklist 检查订单
     * @return 结果
     */
    @Override
    public int insertSysChecklist(SysChecklist sysChecklist)
    {
        return sysChecklistMapper.insertSysChecklist(sysChecklist);
    }

    /**
     * 修改检查订单
     * 
     * @param sysChecklist 检查订单
     * @return 结果
     */
    @Override
    public int updateSysChecklist(SysChecklist sysChecklist)
    {
        return sysChecklistMapper.updateSysChecklist(sysChecklist);
    }

    /**
     * 批量删除检查订单
     * 
     * @param checkIds 需要删除的检查订单主键
     * @return 结果
     */
    @Override
    public int deleteSysChecklistByCheckIds(Long[] checkIds)
    {
        return sysChecklistMapper.deleteSysChecklistByCheckIds(checkIds);
    }

    /**
     * 删除检查订单信息
     * 
     * @param checkId 检查订单主键
     * @return 结果
     */
    @Override
    public int deleteSysChecklistByCheckId(Long checkId)
    {
        return sysChecklistMapper.deleteSysChecklistByCheckId(checkId);
    }

    @Override
    public List<CheckVisit> selectPatientNameByVisitId(CheckVisit checkVisit) {
        return sysChecklistMapper.selectPatientNameByVisitId(checkVisit);
    }


}
